package com.bnyy.message.bean.chat.message_data;

import com.bnyy.message.bean.chat.message_data.MessageData;
import com.bnyy.message.enums.MessageType;
import com.google.gson.JsonObject;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/12/1
 **/
@Table(name = "message_verification")
public class VerificationMessage extends MessageData {

    public VerificationMessage(String msgId, JsonObject jsonObject) {
        super(msgId, jsonObject);
        this.enter_id = jsonObject.get(ColumnName.ENTER_ID).getAsInt();
        this.status = jsonObject.get(ColumnName.STATUS).getAsInt();
    }

    @Override
    public  MessageType getMessageType() {
        return MessageType.GROUP_CHAT_VERIFICATION;
    }

    public VerificationMessage() {
    }

    public interface ColumnName {
        String ENTER_ID = "enter_id";
        String STATUS = "status";
        String STATUS_NAME = "status_name";
    }

    @Column(name = ColumnName.ENTER_ID)
    private int enter_id;
    @Column(name = ColumnName.STATUS)
    private int status;
//    @Column(name = ColumnName.STATUS_NAME)
//    private String status_name;
    
    private JsonObject jsonObject;

    public int getEnter_id() {
        return enter_id;
    }

    public void setEnter_id(int enter_id) {
        this.enter_id = enter_id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
